#include "physics2D.hh"

Physics2D::Physics2D()
{
}


bool Physics2D::collide(Rectangle a, Rectangle b)
{
  // a: left of b

  /*
    +-------------------------+
    |                         |
    |                         |
    |                         |
    +-------------------------+
   */

//  return (a.upRight.x >= b.upLeft.x && a.DownRight.x >= b.DownLeft.y &&);
}


bool Physics2D::mouseIn(float mouseX, float mouseY, Rectangle rect)
{
  return (mouseX > rect.upLeft.x && mouseX < rect.downRight.x
       && mouseY > rect.downRight.y && mouseY < rect.upLeft.y);
}
